<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>CSS练习</title>
		<style type="text/css">
			p.c2 {
				color: #FF0000;
			}

			div+p {
				color: #FFFFFF;
				background-color: #333333;
			}
			.c2 div {
				background-color: #008000;
				height: 20px;
				
			}
			p#bjn {
				color: #FFC0CB;
			}
		</style>
	</head>
	<body>
		<div class="c2">
			<p class="c2" id="bjn">11111</p>
			<div></div>
		</div>
		<p>11111</p>
	</body>
</html>
